<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<META http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" href="../../../style.css" type="text/css" media="screen">
<link rel="stylesheet" href="../../../print.css" type="text/css" media="print">
<meta content="WPConnection,com.press2flash.net.WPConnection,callCustom,getConfig,getPost,getPosts,insertComment,insertPost,ratePost" name="keywords">
<title>com.press2flash.net.WPConnection</title>
</head>
<body>
<script type="text/javascript" language="javascript" src="../../../asdoc.js"></script><script type="text/javascript" language="javascript" src="../../../cookies.js"></script><script type="text/javascript" language="javascript">
<!--
				asdocTitle = 'WPConnection - API Documentation';
				var baseRef = '../../../';
				window.onload = configPage;
			--></script>
<table style="display:none" id="titleTable" cellspacing="0" cellpadding="0" class="titleTable">
<tr>
<td align="left" class="titleTableTitle">Press2Flash - Add the Flash experience to your Wordpress-powered Website!</td><td align="right" class="titleTableTopNav"><a onclick="loadClassListFrame('../../../all-classes.html')" href="../../../package-summary.html">All&nbsp;Packages</a>&nbsp;|&nbsp;<a onclick="loadClassListFrame('../../../all-classes.html')" href="../../../class-summary.html">All&nbsp;Classes</a>&nbsp;|&nbsp;<a onclick="loadClassListFrame('../../../index-list.html')" href="../../../all-index-A.html">Index</a>&nbsp;|&nbsp;<a href="../../../index.html?com/press2flash/net/WPConnection.html&amp;com/press2flash/net/class-list.html" id="framesLink1">Frames</a><a onclick="parent.location=document.location" href="" style="display:none" id="noFramesLink1">No&nbsp;Frames</a></td><td rowspan="3" align="right" class="titleTableLogo"><img alt="Adobe Logo" title="Adobe Logo" class="logoImage" src="../../../images/logo.jpg"></td>
</tr>
<tr class="titleTableRow2">
<td align="left" id="subTitle" class="titleTableSubTitle">Class&nbsp;WPConnection</td><td align="right" id="subNav" class="titleTableSubNav"><a href="#methodSummary">Methods</a></td>
</tr>
<tr class="titleTableRow3">
<td colspan="2">&nbsp;</td>
</tr>
</table>
<script type="text/javascript" language="javascript">
<!--
if (!isEclipse() || window.name != ECLIPSE_FRAME_NAME) {titleBar_setSubTitle("Class WPConnection"); titleBar_setSubNav(false,false,false,false,false,false,true,false,false,false,false,false,false,false);}
--></script>
<div class="MainContent">
<table cellspacing="0" cellpadding="0" class="classHeaderTable">
<tr>
<td class="classHeaderTableLabel">Package</td><td><a onclick="javascript:loadClassListFrame('class-list.html')" href="package-detail.html">com.press2flash.net</a></td>
</tr>
<tr>
<td class="classHeaderTableLabel">Class</td><td class="classSignature">public class WPConnection</td>
</tr>
</table>
<p></p>
  Receive the information from the serialisers and prepare the query to attack the Wordpres API.
  <p></p>
<p>
<span class="classHeaderTableLabel">See also</span>
</p>
<div class="seeAlso">
<a href="../net/ServerConnection.html" target="">com.press2flash.net.ServerConnection</a>
<br>
<a href="../data/CacheManager.html" target="">com.press2flash.data.CacheManager</a>
</div>
<br>
<hr>
</div>
<a name="methodSummary"></a>
<div class="summarySection">
<div class="summaryTableTitle">Public Methods</div>
<table id="summaryTableMethod" class="summaryTable " cellpadding="3" cellspacing="0">
<tr>
<th>&nbsp;</th><th colspan="2">Method</th><th class="summaryTableOwnerCol">Defined&nbsp;by</th>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#WPConnection()">WPConnection</a>()</div>
<div class="summaryTableDescription"></div>
</td><td class="summaryTableOwnerCol">WPConnection</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#callCustom()">callCustom</a>(obj:<a href="../serialization/CustomSerializer.html">CustomSerializer</a>, XMLText:Boolean = true):void</div>
<div class="summaryTableDescription">
   Call a custom function
   </div>
</td><td class="summaryTableOwnerCol">WPConnection</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#getConfig()">getConfig</a>(obj:<a href="../serialization/GetConfigSerializer.html">GetConfigSerializer</a>):void</div>
<div class="summaryTableDescription">
   Get the wordpress configuration
   </div>
</td><td class="summaryTableOwnerCol">WPConnection</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#getPost()">getPost</a>(obj:<a href="../serialization/GetPostSerializer.html">GetPostSerializer</a>, XMLText:Boolean = true):void</div>
<div class="summaryTableDescription">
   Retrieve the content of a single post depending on the parameters
   </div>
</td><td class="summaryTableOwnerCol">WPConnection</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#getPosts()">getPosts</a>(obj:<a href="../serialization/GetPostsSerializer.html">GetPostsSerializer</a>, XMLText:Boolean = true):void</div>
<div class="summaryTableDescription">
   Retrieve a post lists depending on the parameters
   </div>
</td><td class="summaryTableOwnerCol">WPConnection</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#insertComment()">insertComment</a>(obj:<a href="../serialization/InsertCommentSerializer.html">InsertCommentSerializer</a>, XMLText:Boolean = true):void</div>
<div class="summaryTableDescription">
   Insert a comment into a post
   </div>
</td><td class="summaryTableOwnerCol">WPConnection</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#insertPost()">insertPost</a>(obj:<a href="../serialization/InsertPostSerializer.html">InsertPostSerializer</a>, XMLText:Boolean = true):void</div>
<div class="summaryTableDescription">
   Insert a new post in the wordpress database
   </div>
</td><td class="summaryTableOwnerCol">WPConnection</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#ratePost()">ratePost</a>(obj:<a href="../serialization/RatePostSerializer.html">RatePostSerializer</a>, XMLText:Boolean = true):void</div>
<div class="summaryTableDescription">
   Rate a wordpress post
   </div>
</td><td class="summaryTableOwnerCol">WPConnection</td>
</tr>
</table>
</div>
<script type="text/javascript" language="javascript">
<!--
showHideInherited();
--></script>
<div class="MainContent">
<a name="constructorDetail"></a>
<div class="detailSectionHeader">Constructor detail</div>
<a name="WPConnection()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">WPConnection</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">constructor</td>
</tr>
</table>
<div class="detailBody">
<code>public function WPConnection()</code>
</div>
<a name="methodDetail"></a>
<div class="detailSectionHeader">Method detail</div>
<a name="callCustom()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">callCustom</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td>
</tr>
</table>
<div class="detailBody">
<code>public function callCustom(obj:<a href="../serialization/CustomSerializer.html">CustomSerializer</a>, XMLText:Boolean = true):void</code><p>
   Call a custom function
   </p><span class="label">Parameters</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20px"></td><td><code><span class="label">obj</span>:<a href="../serialization/CustomSerializer.html">CustomSerializer</a></code> &mdash; CustomSerializer object holding the parameters
   </td>
</tr>
<tr>
<td class="paramSpacer">&nbsp;</td>
</tr>
<tr>
<td width="20px"></td><td><code><span class="label">XMLText</span>:Boolean</code> (default = <code>true</code>)<code></code> &mdash; true if the post content should be formated as XML
   </td>
</tr>
</table>
</div>
<a name="getConfig()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">getConfig</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public function getConfig(obj:<a href="../serialization/GetConfigSerializer.html">GetConfigSerializer</a>):void</code><p>
   Get the wordpress configuration
   </p><span class="label">Parameters</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20px"></td><td><code><span class="label">obj</span>:<a href="../serialization/GetConfigSerializer.html">GetConfigSerializer</a></code> &mdash; GetConfigSerializer object holding the parameters to retrieve from WP
   </td>
</tr>
</table>
</div>
<a name="getPost()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">getPost</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public function getPost(obj:<a href="../serialization/GetPostSerializer.html">GetPostSerializer</a>, XMLText:Boolean = true):void</code><p>
   Retrieve the content of a single post depending on the parameters
   </p><span class="label">Parameters</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20px"></td><td><code><span class="label">obj</span>:<a href="../serialization/GetPostSerializer.html">GetPostSerializer</a></code> &mdash; GetPostSerializer object holding the parameters 
   </td>
</tr>
<tr>
<td class="paramSpacer">&nbsp;</td>
</tr>
<tr>
<td width="20px"></td><td><code><span class="label">XMLText</span>:Boolean</code> (default = <code>true</code>)<code></code> &mdash; true if the post content should be formated as XML 
   </td>
</tr>
</table>
</div>
<a name="getPosts()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">getPosts</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public function getPosts(obj:<a href="../serialization/GetPostsSerializer.html">GetPostsSerializer</a>, XMLText:Boolean = true):void</code><p>
   Retrieve a post lists depending on the parameters
   </p><span class="label">Parameters</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20px"></td><td><code><span class="label">obj</span>:<a href="../serialization/GetPostsSerializer.html">GetPostsSerializer</a></code> &mdash; GetPostsSerializer object holding the parameters 
   </td>
</tr>
<tr>
<td class="paramSpacer">&nbsp;</td>
</tr>
<tr>
<td width="20px"></td><td><code><span class="label">XMLText</span>:Boolean</code> (default = <code>true</code>)<code></code> &mdash; true if the post content should be formated as XML 
   </td>
</tr>
</table>
</div>
<a name="insertComment()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">insertComment</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public function insertComment(obj:<a href="../serialization/InsertCommentSerializer.html">InsertCommentSerializer</a>, XMLText:Boolean = true):void</code><p>
   Insert a comment into a post
   </p><span class="label">Parameters</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20px"></td><td><code><span class="label">obj</span>:<a href="../serialization/InsertCommentSerializer.html">InsertCommentSerializer</a></code> &mdash; InsertCommentSerializer object holding the parameters
   </td>
</tr>
<tr>
<td class="paramSpacer">&nbsp;</td>
</tr>
<tr>
<td width="20px"></td><td><code><span class="label">XMLText</span>:Boolean</code> (default = <code>true</code>)<code></code> &mdash; true if the post content should be formated as XML
   </td>
</tr>
</table>
</div>
<a name="insertPost()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">insertPost</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public function insertPost(obj:<a href="../serialization/InsertPostSerializer.html">InsertPostSerializer</a>, XMLText:Boolean = true):void</code><p>
   Insert a new post in the wordpress database
   </p><span class="label">Parameters</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20px"></td><td><code><span class="label">obj</span>:<a href="../serialization/InsertPostSerializer.html">InsertPostSerializer</a></code> &mdash; InsertPostSerializer object holding the parameters
   </td>
</tr>
<tr>
<td class="paramSpacer">&nbsp;</td>
</tr>
<tr>
<td width="20px"></td><td><code><span class="label">XMLText</span>:Boolean</code> (default = <code>true</code>)<code></code> &mdash; true if the post content should be formated as XML
   </td>
</tr>
</table>
</div>
<a name="ratePost()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">ratePost</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public function ratePost(obj:<a href="../serialization/RatePostSerializer.html">RatePostSerializer</a>, XMLText:Boolean = true):void</code><p>
   Rate a wordpress post
   </p><span class="label">Parameters</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20px"></td><td><code><span class="label">obj</span>:<a href="../serialization/RatePostSerializer.html">RatePostSerializer</a></code> &mdash; RatePostSerializer object holding the parameters 
   </td>
</tr>
<tr>
<td class="paramSpacer">&nbsp;</td>
</tr>
<tr>
<td width="20px"></td><td><code><span class="label">XMLText</span>:Boolean</code> (default = <code>true</code>)<code></code> &mdash; true if the post content should be formated as XML 
   </td>
</tr>
</table>
</div>
<br>
<br>
<hr>
<br>
<p></p>
<center class="copyright"> 
</center>
</div>
</body>
</html>
<!-- -->
